<form method="post" enctype="multipart/form-data">
    {{ form.csrf_token }}
    <p>{{form.ftmp.lable}}{{form.ftmp}}</p>
    <p>{{form.submit}}</p>
</form>
<ul>
    {% for message in get_flashed_messages() %}
    <div class=flash><li><p>{{ message }}</p></li></div>
    {% endfor %} 
    </ul>